import { request} from '@/utils/request.util';
import type { Response, Res } from '@/types/common';

import type {PrintResponse,PrintInfo,PrintResponseData} from '@/types/print'

//查询诊所打印设置
export const getPrintConfigList =  () => request.get<PrintResponse> ("/print/config/getPrintConfigList",{});  

// 保存诊所打印设置
export const savePrintConfig = (body: PrintInfo) => request.post<Response<Res>>("/print/config/savePrintConfig",body);

//打印设置应用到全部
export const saveAllPrintConfig = (body: PrintInfo) => request.post<Response<Res>>("/print/config/saveAllPrintConfig",body);



//打印挂号单
export const getRegisterPrint =  ( registerId:any) => request.get<any> ("/clinic/register/getRegisterPrint",{
  params: { registerId }
});  

//打印收费单、

export const getChargeOrderPrint =  ( orderId:any,recordId?:any) => request.get<any> ("/charge/order/getChargeOrderPrint",{
  params: { recordId,orderId }
});  

